package com.ffapp.rainmonitorcustom.bean;

import android.text.TextUtils;

import com.ffapp.rainmonitorcustom.util.MyUtils;
import com.ffapp.rainmonitorcustom.R;

public class MonitorDetailBean extends BasisBean {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * BUILDNO : 0001
	 * STATUSNAME : 正常
	 * NO : 000000000080
	 * GATHERTIME : 2018-09-27 09:25:17
	 * STARTDATE : 2018-01-01 00:00:00
	 * ALARM : null
	 * LONGITUDE : 118.08208
	 * OFFCOMNO : sm0001
	 * T1_STATUS : 0
	 * FLAG : 02
	 * TRANSFERHOSTNO : 2141234
	 * PROCESSINGSTATUS : 0
	 * WATERGAGELOW : 0.1
	 * POSITION : 步行街
	 * STATUS : 1
	 * OFFCOMNAME : 厦门市人民剧场
	 * ID : 4028872760c4ce4c0160c4dbc8770000
	 * OPERATIONMAN : xmadmin
	 * OPERATIONTIME : 2018-09-27 10:05:41
	 * TYPE : 0
	 * TRANSFERHOSTNAME : safdsadf
	 * BORE : 20
	 * IMG : /pages/MobilePage/images/app/WATER02_on_d.png
	 * NAME : 消防栓(厦门市人民剧场)
	 * WATERGAGEHIGH : 0.55
	 * WATERGAGE : 0.53
	 * ADDRESS : 福建省厦门市思明区中华街道厦门市人民剧场中山路步行街
	 * PROJECTNO : 350203
	 * SORT : 0
	 * LATITUDE : 24.454199
	 */

	private String BUILDNO;
	private String STATUSNAME;
	private String NO;
	private String GATHERTIME;
	private String STARTDATE;
	private String ALARM;
	private double LONGITUDE;
	private String OFFCOMNO;
	private String T1_STATUS;
	private String FLAG;
	private String TRANSFERHOSTNO;
	private int PROCESSINGSTATUS;
	private double WATERGAGELOW;
	private String POSITION;

	private String STATUS;
	private String OFFCOMNAME;
	private String ID;
	private String OPERATIONMAN;
	private String OPERATIONTIME;
	private String TYPE;
	private String TRANSFERHOSTNAME;
	private int BORE;
	private String IMG;
	private String NAME;
	private double WATERGAGEHIGH;
	private double WATERGAGE;
	private String ADDRESS;
	private String PROJECTNO;
	private String SORT;
	private double LATITUDE;
	private String WATERLEVEL;
	private String WATERLEVELLOW;
	private String WATERLEVELHIGH;
	private String VOLUME;
	private String FIRENAME;
	private String FIRENO;

	public String getWATERLEVEL() {
		return WATERLEVEL;
	}
	public String getWATERLEVELStr() {
		if(TextUtils.isEmpty(WATERLEVEL))return "--cm";
		return WATERLEVEL+"cm";
	}

	public void setWATERLEVEL(String WATERLEVEL) {
		this.WATERLEVEL = WATERLEVEL;
	}

	public String getWATERLEVELLOW() {
		return WATERLEVELLOW;
	}

	public void setWATERLEVELLOW(String WATERLEVELLOW) {
		this.WATERLEVELLOW = WATERLEVELLOW;
	}

	public String getWATERLEVELHIGH() {
		return WATERLEVELHIGH;
	}

	public void setWATERLEVELHIGH(String WATERLEVELHIGH) {
		this.WATERLEVELHIGH = WATERLEVELHIGH;
	}

	public String getVOLUME() {
		return VOLUME;
	}

	public void setVOLUME(String VOLUME) {
		this.VOLUME = VOLUME;
	}

	public String getBUILDNO() {
		return BUILDNO;
	}

	public void setBUILDNO(String BUILDNO) {
		this.BUILDNO = BUILDNO;
	}


	public String getSTATUSNAME() {
		return STATUSNAME;
	}

	public void setSTATUSNAME(String STATUSNAME) {
		this.STATUSNAME = STATUSNAME;
	}

	public String getNO() {
		return NO;
	}

	public void setNO(String NO) {
		this.NO = NO;
	}

	public String getGATHERTIME() {
		return GATHERTIME;
	}

	public void setGATHERTIME(String GATHERTIME) {
		this.GATHERTIME = GATHERTIME;
	}

	public String getSTARTDATE() {
		return STARTDATE;
	}

	public void setSTARTDATE(String STARTDATE) {
		this.STARTDATE = STARTDATE;
	}

	public String getALARM() {
		if(TextUtils.isEmpty(ALARM))return "";
		return ALARM;
	}

	public void setALARM(String ALARM) {
		this.ALARM = ALARM;
	}

	public double getLONGITUDE() {
		return LONGITUDE;
	}

	public void setLONGITUDE(double LONGITUDE) {
		this.LONGITUDE = LONGITUDE;
	}

	public String getOFFCOMNO() {
		return OFFCOMNO;
	}

	public void setOFFCOMNO(String OFFCOMNO) {
		this.OFFCOMNO = OFFCOMNO;
	}

	public String getT1_STATUS() {
		return T1_STATUS;
	}

	public void setT1_STATUS(String T1_STATUS) {
		this.T1_STATUS = T1_STATUS;
	}

	public String getFLAG() {
		return FLAG;
	}

	public void setFLAG(String FLAG) {
		this.FLAG = FLAG;
	}

	public String getTRANSFERHOSTNO() {
		return TRANSFERHOSTNO;
	}

	public void setTRANSFERHOSTNO(String TRANSFERHOSTNO) {
		this.TRANSFERHOSTNO = TRANSFERHOSTNO;
	}

	public int getPROCESSINGSTATUS() {
		return PROCESSINGSTATUS;
	}

	public void setPROCESSINGSTATUS(int PROCESSINGSTATUS) {
		this.PROCESSINGSTATUS = PROCESSINGSTATUS;
	}

	public double getWATERGAGELOW() {
		return WATERGAGELOW;
	}

	public void setWATERGAGELOW(double WATERGAGELOW) {
		this.WATERGAGELOW = WATERGAGELOW;
	}

	public String getPOSITION() {
		return POSITION;
	}

	public void setPOSITION(String POSITION) {
		this.POSITION = POSITION;
	}

	public String getSTATUS() {
		return STATUS;
	}

	public void setSTATUS(String STATUS) {
		this.STATUS = STATUS;
	}

	public String getOFFCOMNAME() {
		return OFFCOMNAME;
	}

	public void setOFFCOMNAME(String OFFCOMNAME) {
		this.OFFCOMNAME = OFFCOMNAME;
	}

	public String getID() {
		return ID;
	}

	public void setID(String ID) {
		this.ID = ID;
	}

	public String getOPERATIONMAN() {
		return OPERATIONMAN;
	}

	public void setOPERATIONMAN(String OPERATIONMAN) {
		this.OPERATIONMAN = OPERATIONMAN;
	}

	public String getOPERATIONTIME() {
		return OPERATIONTIME;
	}

	public void setOPERATIONTIME(String OPERATIONTIME) {
		this.OPERATIONTIME = OPERATIONTIME;
	}

	public String getTYPE() {
		return TYPE;
	}

	public void setTYPE(String TYPE) {
		this.TYPE = TYPE;
	}

	public String getTRANSFERHOSTNAME() {
		return TRANSFERHOSTNAME;
	}

	public void setTRANSFERHOSTNAME(String TRANSFERHOSTNAME) {
		this.TRANSFERHOSTNAME = TRANSFERHOSTNAME;
	}

	public int getBORE() {
		return BORE;
	}

	public void setBORE(int BORE) {
		this.BORE = BORE;
	}

	public String getIMG() {
		return IMG;
	}
	public String getIMG_REAL() {
		return MyUtils.getImageUrlHome(IMG);
	}

	public void setIMG(String IMG) {
		this.IMG = IMG;
	}

	public String getNAME() {
		return NAME;
	}

	public void setNAME(String NAME) {
		this.NAME = NAME;
	}

	public double getWATERGAGEHIGH() {
		return WATERGAGEHIGH;
	}

	public void setWATERGAGEHIGH(double WATERGAGEHIGH) {
		this.WATERGAGEHIGH = WATERGAGEHIGH;
	}

	public double getWATERGAGE() {
		return WATERGAGE;
	}
	public String getWATERGAGEStr() {//水位
		if(WATERGAGE == 0)return "--MPa";
		return  WATERGAGE +"MPa";
	}

	public void setWATERGAGE(double WATERGAGE) {
		this.WATERGAGE = WATERGAGE;
	}

	public String getADDRESS() {
		return ADDRESS;
	}

	public void setADDRESS(String ADDRESS) {
		this.ADDRESS = ADDRESS;
	}

	public String getPROJECTNO() {
		return PROJECTNO;
	}

	public void setPROJECTNO(String PROJECTNO) {
		this.PROJECTNO = PROJECTNO;
	}

	public String getSORT() {
		return SORT;
	}

	public void setSORT(String SORT) {
		this.SORT = SORT;
	}

	public double getLATITUDE() {
		return LATITUDE;
	}

	public void setLATITUDE(double LATITUDE) {
		this.LATITUDE = LATITUDE;
	}

	public String getFIRENAME() {
		return FIRENAME;
	}

	public void setFIRENAME(String FIRENAME) {
		this.FIRENAME = FIRENAME;
	}

	public String getFIRENO() {
		return FIRENO;
	}

	public void setFIRENO(String FIRENO) {
		this.FIRENO = FIRENO;
	}

//	public int getStatusImgPoint(){
//		if(TextUtils.isEmpty(STATUSNAME))return R.drawable.base_circle_grey;
//
//
//		return  R.drawable.base_circle_grey;
//	}


	public String getSTATUSStr() {
		if(TextUtils.isEmpty(STATUS))      return "正常";
		switch (STATUS){
			case "0":
				return "正常";
			case "1":
				return "报警";
			case "2":
				return "离线";
			default:
				return "正常";

		}
	}

	public int getSTATUS_resid() {
		if(TextUtils.isEmpty(STATUS))     return R.drawable.base_circle_green;
		switch (STATUS){
			case "0":
				return R.drawable.base_circle_green;
			case "1":
				return  R.drawable.base_circle_red;
			case "2":
				return  R.drawable.base_circle_yellow;
			default:
				return R.drawable.base_circle_green;

		}
	}

}
